import distManager
import logger
import os

#Load config file
config = {}
exec(open("settings.py").read(), config)

logger      = logger.Logger(os.getcwd())

distC = distManager.DistManager(logger,config)
print ('AddSchool')

distC.addSchool('472', '600 First Street, Van Horne, IA 52346')
distC.addSchool('782', '707 7th St., Belle Plaine, IA 52208')
distC.addSchool('155', '9th	600 First Street, Van Horne, IA 52346')
distC.addSchool('904', '1090 Jackson Street ,IA 52211') 
distC.addSchool('832', '225 South Elm Street Gilman, IA 50106')
distC.addSchool('541', '306 Park Street Garwin, IA 50632')
distC.addSchool('055', '1333 Sunset Street, IA  50112')
distC.addSchool('371', '9th	1333 Sunset Street, IA  50112')
distC.addSchool('892', '402 5th street ,IA  52347')
distC.addSchool('924', '1811 West Madison Street, IA 50138')
distC.addSchool('117', '12476 Hwy F-62 E,IA 50251')

#distC.addSchool('Benton Community', '600 First Street, Van Horne, IA 52346')
#distC.addSchool('Belle Plaine', '707 7th St., Belle Plaine, IA 52208')
#distC.addSchool('Benton Community', '9th	600 First Street, Van Horne, IA 52346')
#distC.addSchool('BGM', '1090 Jackson Street ,IA 52211') 
#distC.addSchool('East Marshall', '225 South Elm Street Gilman, IA 50106')
#distC.addSchool('GMG Senior', '306 Park Street Garwin, IA 50632')
#distC.addSchool('Grinnell', '1333 Sunset Street, IA  50112')
#distC.addSchool('Grinnell', '9th	1333 Sunset Street, IA  50112')
#distC.addSchool('HLV', '402 5th street ,IA  52347')
#distC.addSchool('Knoxville', '"1811 West Madison Street, IA 50138')
#distC.addSchool('Lynnville-Sully', '12476 Hwy F-62 E,IA 50251')
print('1\n')
distC.writeCache()

#distC.addSchool('Marshalltown', '12476 Hwy F-62 E,IA 50251')
#distC.addSchool('Marshalltown', '9th	12476 Hwy F-62 E,IA 50251')
#distC.addSchool('Montezuma', '504 North 4th Street , IA 50171')
#distC.addSchool('Montezuma', '9th	504 North 4th Street , IA 50171')
#distC.addSchool('Newton', '807 S 6th Avenue West Newton, IA 50208')
#distC.addSchool('North Mahaska', '800 E. 4th St. S.IA  50208')  
#distC.addSchool('North Tama', '605 Walnut street,IA 50675')
#distC.addSchool('PCM', '400 E Highway 163  , IA 50170')
#distC.addSchool('Pella', '212 E. University St., Pella, IA 50219')
#distC.addSchool('Pella', 'Christian	300 eagle lane Pella, IA 50219')
#distC.addSchool('Pella Community', '210 East University Street, Pella,IA 50219')
#print('2\n')
#distC.calculateTimes()
#distC.writeCache()
#distC.addSchool('Pella 9th', '229 9th St, Pella IA 50219')
#distC.addSchool('Pleasantville', '415 Jones Street, Pleasantville, Iowa 50225')
#distC.addSchool('South Tama', '415 Jones St,Pleasantville IA 50225')
#distC.addSchool('Twin Cedars', '2204 County Highway G71,Bussey,IA 50044')
#distC.addSchool('Vinton-Shellsburg', '210 West 21st Street,Vinton,IA, 52349')
#distC.addSchool('Albia', '120 Benton Avenue East Albia, IA 52531')
#distC.addSchool('Cedar Rapids, Prairie', '401 County Highway E66 Cedar Rapids, IA 52404')
#distC.addSchool('Cedar Rapids, Prairie 9th', '401 76th Ave SW,Cedar Rapids,IA 52404')
#distC.addSchool('Cedar Rapids, Washington', '2205 Forest Drive SE  Cedar Rapids, IA 52403')
#distC.addSchool('Clear Creek-Amana', '551 West Marengo Road Tiffin, IA 52340')
#distC.addSchool('Davenport, Assumption', '1020 West Central Park Avenue  Davenport, IA 52804')
#print('3\n')
#distC.calculateTimes()
#distC.writeCache()
#distC.addSchool('Eddyville/Blakesburg', '1301 Berdan Ext, Eddyville,IA 52553')
#distC.addSchool('Iowa City, City High', '2901 Melrose Ave, Iowa City, IA 52246')
#distC.addSchool('Iowa City, Regina', '2150 Rochester avenue, Iowa City,IA 52245')
#distC.addSchool('Iowa Valley', '359 East Hilton Street Marengo, IA 52301')
#distC.addSchool('Iowa Valley, Marengo', '359 East Hilton Street Marengo, IA 52301')
#distC.addSchool('Keota', '500 North Ellis Street, Keota, IA 52248')
#distC.addSchool('Lone Tree', '303 S Devoe St, Lone Tree,IA 52755')
#distC.addSchool('Lone Tree 9th', '9th Ave. Washington, IA 52353')
#distC.addSchool('Mid-Prairie, Wellman', '1634 Highway 22 E, Wellman, IA 52356')
#distC.addSchool('Oskaloosa', '1816 North 3rd St, Oskaloosa, IA 52577')
#distC.addSchool('Pekin', '1062 Birch Avenue Packwood, IA 52580')
#distC.addSchool('Pekin, Packwood', '1062 Birch Avenue Packwood, IA 52580')
#print('4\n')
#distC.calculateTimes()
#distC.writeCache()
#distC.addSchool('Pleasant Valley', '604 Belmont Road, Riverdale, IA 52722')
#distC.addSchool('Sigourney', 'Sigourney, IA 52591')
#distC.addSchool('Tri-County Thornburg', 'Thornburg, IA')
#distC.addSchool('Washington', '2205 Forest Drive SE  Cedar Rapids, IA 52403')
#distC.addSchool('West Liberty', '310 West Maxson Avenue, West Liberty, IA 52776')
#distC.addSchool('Williamsburg', '810 West Walnut Street, Williamsburg, IA 52361')
#distC.addSchool('Williamsburg 9th', '810 West Walnut, Williamsburg, Iowa   52361') 
#distC.addSchool('Wilton', '1002 Cypress Street, Wilton, IA 52778')
#distC.addSchool('Burlington', '1429 West Avenue Burlington, IA 52601')
#distC.addSchool('Burlington Notre Dame', '702 S. Roosevelt Ave., Burlington, IA 52601')
#distC.addSchool('Cardinal', '4045 Ashland Rd. | Eldon, Iowa 52554') 
#print('5\n')
#distC.calculateTimes()
#distC.writeCache()
#distC.addSchool('Centerville', '600 Chs Drive Centerville, IA 52544')
#distC.addSchool('Centerville 9th', '408 N 9th St, Centerville, IA 52544')
#distC.addSchool('Columbus', '1004 Colton Street  Columbus Jct, IA 52738')
#distC.addSchool('Danville', '419 South Main Street. Danville Iowa 52623') 
#distC.addSchool('Davis County', '608 South Washington Street Bloomfield, IA 52537')
#distC.addSchool('Fairfield', '403 S 20th Street Fairfield, IA 52556') 
#distC.addSchool('Fort Madison', '2001 Avenue A Fort Madison, IA 52627')
#distC.addSchool('Keokuk', '2285 Middle Road Keokuk, Iowa 52632')
#distC.addSchool('Marharishi Upper', '804 North 3rd Street Fairfield, IA 52556')
#print('6\n')
#distC.calculateTimes()
#distC.writeCache()
#distC.addSchool('Mediapolis', '725 North Northfield Street Mediapolis, IA 52637')
#distC.addSchool('Mediapolis 9th', '725 N. Northfield Mediapolis, Iowa 52637')
#distC.addSchool('Mount Pleasant', '2104 South Grand Avenue Mount Pleasant, IA 52641')
#distC.addSchool('New London', '106 Jack Wilson Dr New london, IA 52645')
#distC.addSchool('Ottumwa', '422 McCarroll Drive Ottumwa, IA 52501')
#distC.addSchool('Wapello', '406 Mechanic Street Wapello, IA 52653')
#distC.addSchool('West Burlington', '607 Ramsey St. West Burlington, IA 52655')
#distC.addSchool('Sioux Falls Washington', '501 N. Sycamore, Sioux Falls SD, 57110')
#
#
#
#print ('Calculate')
#distC.calculateTimes()

distC.setHostSchool('BGM')
print ('Print')
distC.printTimes()
